-- GENERATED SPELL FOR [Barbscale Crocolisk] --


function spell0_20773(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20773', 8000, 1)
end

function Sorts_20773(pUnit, Event)
local choix_sorts_20773 = math.random(0, 0)
if choix_sorts_20773 == 0 then
pUnit:RegisterEvent('spell0_20773', 1, 1)
end
end

function mob20773_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20773', math.random(1500, 3000), 1)
end

function mob20773_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20773_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20773_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20773, 1, 'mob20773_Action')
RegisterUnitEvent(20773, 2, 'mob20773_Leave')
RegisterUnitEvent(20773, 3, 'mob20773_Kill')
RegisterUnitEvent(20773, 4, 'mob20773_Die')
